package rjp.mutation;

import java.util.HashSet;
import java.util.Set;

import rjp.map.SantaMap;
import rjp.solution.MapConnection;
import rjp.solution.Solution;

public class MakeALongestMutation extends Mutation {

	public MakeALongestMutation(SantaMap map) {
		super(map);
	}

	@Override
	public Set<MapConnection> getAdditionalConnections(Solution solution) {
		
		return new HashSet<MapConnection>();
	}

	@Override
	public Set<MapConnection> getObsoleteConnections(Solution solution) {
		return new HashSet<MapConnection>();
	}

	@Override
	public Solution mutate(Solution solution) {
		if(solution.getLenghtA()<solution.getLenghtB())
		{
			solution.swapAB();
		}
			
		return solution;
	}

}
